package com.hm.ibsm.domain.mg;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.hm.ibsm.def.enums.DictTypeEnums;
import com.hm.ibsm.util.BaseDomain;
import com.hm.ibsm.util.R;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author shishun.wang
 * @date 2017年3月7日 上午2:33:09
 * @version 1.0
 * @describe 数据字典
 */
@Setter
@Getter
@ToString
@Entity
@Table(name = R.DB.PREFIX + "DICT")
public class DictDomain extends BaseDomain {

	private static final long serialVersionUID = -6330454878149982989L;

	@Column(nullable = false, name = "type")
	@Enumerated(EnumType.STRING)
	private DictTypeEnums dictType;

	private String code;

	private String value;

	private String comment;

	private int level;

}
